home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / util / pack / OptXPK.lha / OptimizeXPK.doc next >
Text File  |  1995-06-25  |  3KB  |  102 lines

  1. Intro
  2. =====
  3. OptimizeXPK.rexx is an ARexx script which figures out which XPK packer
  4. library will be most efficient for a given file.  If two or more packers
  5. come out equal in terms of space requirements, it will choose the packer
  6. which takes the least time to unpack the file.
  7.  
  8. Requirements
  9. ============
  10. ARexx
  11. rexxsupport.library
  12. The "xpk" program, and some xpk packer libraries
  13.  
  14. Optional
  15. ========
  16. rexxreqtools.library
  17. GNU touch, or another touch that supports the "-r" option similarly
  18.  
  19. Installation
  20. ============
  21. A) Edit the script, and set up three things according to your computer's
  22.    configuration:
  23.  
  24.     1.) set XPK equal to the full path of the "xpk" program, e.g.:
  25.  
  26.             XPK = "Arc:xpk"
  27.  
  28.     2.) set TOUCH equal to the full path of the "touch" program,
  29.         or set it to "", e.g.:
  30.  
  31.             TOUCH = "Unixisms:bin/touch"
  32.  
  33.         (If TOUCH is set to a "tocuh" program that supports "-r",
  34.          OptimizeXPK will preserve the datestamp on files it compresses.
  35.          If this doesn;t matter to you, you can set TOUCH to "".)
  36.  
  37.     3.) set up the array of packers.  Set packers.0 to the number of
  38.         packers, and each of the packer values to the code for the
  39.         packer library (four letters, followed by an optional
  40.         period "." and a number), e.g.
  41.  
  42.             PACKERS.0 = 3
  43.             PACKERS.1 = "NUKE"
  44.             PACKERS.2 = "RAKE"
  45.             PACKERS.3 = "MASH"
  46.  
  47. B) Also, set up the assign "OptXPK:" to point to a directory where the
  48.    various compression methods can be tried.  This directory should have
  49.    the same block size as the device on which the file to be packed resides,
  50.    so don't use "RAM:", but "RAD:" or "VD0:" are okay, as is something
  51.    like "DH1:tmpdir/" (provided tmpdir exists on DH1:).
  52.  
  53. C) Put the script somewhere in the ARexx search path
  54.  
  55. Usage
  56. =====
  57. rx OptimizeXPK [filename]
  58.  
  59. where [filename] is the file you want packed.  And no, don't type the
  60. brackets.  8^)  The filename is optional and if not provided, the
  61. rexxreqtools.library will be used to offer you a file requester, from
  62. which you may choose what to pack.  It will try out each method in the
  63. OptXPK: dir.
  64.  
  65. History
  66. =======
  67. v0.9  25-Jun-95   Beta release.  First public release, but it's been
  68.                   stable for me for quite a while.
  69.  
  70. Author
  71. ======
  72. The author can be reached via email to redcloud@pobox.com, or
  73. by physical mail to:
  74.     Jack Holt
  75.     1702-A E. Birch St.
  76.     Cottonwood, AZ 86326-3953
  77.  
  78. Suggestions and post cards are always welcome.
  79.  
  80. Future
  81. ======
  82. This is a beta release, so things can obviously get a lot better.
  83. Some things I want to do:
  84.  
  85. 1) Better documentation
  86. 2) Configure without editting the script itself
  87. 3) Get rid of the OptXPK: assign!
  88. 4) Translate into 'C'
  89.  
  90. More as I think of them.
  91.  
  92. Thanks to
  93. =========
  94. [] Natalie Merchant, for putting out a new album just in time for me
  95.    to be listening to it as I hurriedly type these docs.
  96. [] J. Michael Straczynski, for producing my favorite TV show: _Babylon 5_
  97. [] Ravi Patil, for sending me the weirdest email a brain could possibly spawn
  98. [] Everyone who has ever sent me email for my previous programs.
  99. [] Ferruccio, for sending me a postcard for Scatterbrain.  Yes, I still
  100.    intend to keep working on it.  Locale support *will* come!
  101.  
  102.